<%--

  Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2.1, dated February 1999.

  This program is free software; you can redistribute it and/or modify
  it under the terms of the latest version of the GNU Lesser General
  Public License as published by the Free Software Foundation;

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public License
  along with this program (LICENSE.txt); if not, write to the Free Software
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

--%>
<%@page import="org.jamwiki.servlets.LinkUtilEx"%>
<%@page import="org.jamwiki.utils.WikiUtil"%>
<%@page import="org.lightframework.jamwiki.servlets.WikiContext"%>

<div id="user-nav">
<c:choose>
	<c:when test="${isDishboardPage}"><fmt:message key="uesrmenu.dashboard"/></c:when>
	<c:otherwise>
		<a href="<%=LinkUtilEx.buildSpecialTopicUrl("Dashboard")%>"><fmt:message key="uesrmenu.dashboard"/></a>&nbsp;&gt;
		<a href="<%=LinkUtilEx.asContextPath(WikiContext.wikiName())%>"><%=WikiContext.wikiName()%></a>
		<%if(WikiContext.isViewTopic()){%>
		&gt;&nbsp;<%=WikiContext.topic().getName()%>
		<%}%>
	</c:otherwise>
</c:choose>
</div>

<div id="user-menu"><nobr><ul>
<c:forEach items="${pageInfo.userMenu}" var="menuItem">
	<li><jamwiki:link value="${menuItem.key}"><fmt:message key="${menuItem.value.key}"><fmt:param value="${menuItem.value.params[0]}" /></fmt:message></jamwiki:link></li>
</c:forEach>
	<li><a target="_blank" href="<%=LinkUtilEx.buildSpecialTopicUrl("Help:Index")%>"><fmt:message key="usermenu.help"/></a></li>
</ul></nobr></div>
<div class="clear"></div>
